home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 045a / tpapi1.zip / NWSYNCH.PA1 < prev    next >
Text File  |  1991-12-04  |  5KB  |  83 lines

  1. {!R! FONT 15; FTMD 15; EXIT;}
  2.  
  3.  
  4. {***************************************************************************}
  5. {** Program : NWSYNCH                                                     **}
  6. {***************************************************************************}
  7. {** Version : 1.0b            ** Started : 11/11/91  ** Ended :   /  /    **}
  8. {***************************************************************************}
  9. {******************************** Description ******************************}
  10. {***************************************************************************}
  11. {** OOP library for Netware API                                           **}
  12. {**                                                                       **}
  13. {** This unit forms the second level object : SYNCH                       **}
  14. {** This object is a descandent of          : NETWARE                     **}
  15. {**                                                                       **}
  16. {**                                                                       **}
  17. {**                                                                       **}
  18. {**                                                                       **}
  19. {***************************************************************************}
  20. {******************************** Information ******************************}
  21. {***************************************************************************}
  22. {**                                                                       **}
  23. {**                                                                       **}
  24. {**                                                                       **}
  25. {**                                                                       **}
  26. {** This code is (c) 1991 Tony Covelli,                                   **}
  27. {** Portions (c) Novell Inc,                                              **}
  28. {**                                                                       **}
  29. {**                                                                       **}
  30. {***************************************************************************}
  31.  
  32. {$I NETWARE.INC}
  33.  
  34. UNIT NWSYNCH;
  35.  
  36. INTERFACE
  37.  
  38. USES
  39.  
  40.   netware, nwvar;
  41.  
  42. TYPE
  43.  
  44.   pSynchOBJ = ^SynchOBJ;
  45.   SynchOBJ  = object (NetwareOBJ)
  46.  
  47.     constructor Init;
  48.     FUNCTION    ClearFile             (FileName : PathNameType) : WORD;
  49.     PROCEDURE   ClearFileSet;
  50.     FUNCTION    ClearLogicalRecord    (LogicalRecordName : LogicalRecordNameType) : WORD;
  51.     PROCEDURE   ClearLogicalRecordSet;
  52.     FUNCTION    ClearPhysicalRecord   (FileHandle : WORD; RecordOffset, RecordLength : LONGINT) : WORD;
  53.     PROCEDURE   ClearPhysicalRecordSet;
  54.     FUNCTION    CloseSemaphore        (SemaphoreHandle : LONGINT) : WORD;
  55.     FUNCTION    ExamineSemaphore      (SemaphoreHandle : LONGINT; VAR SemaphoreValue : WORD;
  56.                                        VAR OpenCount : WORD) : WORD;
  57.     FUNCTION    GetLockMode : WORD;
  58.     FUNCTION    LockFileSet           (TimeOut : WORD) : WORD;
  59.     FUNCTION    LockLogicalRecordSet  (LockDirective : BYTE; Timeout : WORD) : WORD;
  60.     FUNCTION    LockPhysicalRecordSet (LockDirective : BYTE; TimeOut : WORD) : WORD;
  61.     FUNCTION    LogFile               (FileName : PathNameType; LockDirective : BYTE; TimeOut : WORD) : WORD;
  62.     FUNCTION    LogLogicalRecord      (LogicalRecordName : LogicalRecordNameType;
  63.                                        LockDirective : BYTE; TimeOut : WORD) : WORD;
  64.     FUNCTION    LogPhysicalRecord     (FileHandle : WORD; RecordOffSet, RecordLength : LONGINT;
  65.                                        LockDirective : BYTE; TimeOut : WORD) : WORD;
  66.     FUNCTION    OpenSemaphore         (SemaphoreName : SemaphoreNameType; InitialValue : WORD;
  67.                                        VAR SemaphoreHandle : LONGINT; VAR OpenCount : WORD) : WORD;
  68.  
  69.     FUNCTION    ReleaseFile           (FileName : PathNameType) : WORD;
  70.     PROCEDURE   ReleaseFileSet;
  71.     FUNCTION    ReleaseLogicalRecord  (LogicalRecordName : LogicalRecordNameType) : WORD;
  72.     PROCEDURE   ReleaseLogicalRecordSet;
  73.     FUNCTION    ReleasePhysicalRecord (FileHandle : WORD; RecordOffset, RecordLength : LONGINT) : WORD;
  74.     PROCEDURE   ReleasePhysicalRecordSet;
  75.     FUNCTION    SetLockMode           (LockMode : BYTE) : WORD;
  76.     FUNCTION    SignalSemaphore       (SemaphoreHandle : LONGINT) : WORD;
  77.     FUNCTION    WaitOnSemaphore       (SemaphoreHandle : LONGINT; TimeOut : WORD) : WORD;
  78.  
  79.     destructor Done; virtual;
  80.  
  81.   END;
  82.  
  83.